package kingone.phone_store_spring_practice.service;

import kingone.phone_store_spring_practice.entity.PhoneInfo;
import kingone.phone_store_spring_practice.vo.DataVO;
import kingone.phone_store_spring_practice.vo.PhoneInfoVO;
import kingone.phone_store_spring_practice.vo.SpecsPackageVO;

import java.util.List;

public interface PhoneService {
    //1. 首页展示数据的封装
    public DataVO findDataVO();

    //2. 根据类型查询手机信息的数据封装
    public List<PhoneInfoVO> findPhoneInfoVOByCategoryType(Integer categoryType);

    //3.根据phoneId完成对应手机规格的查询
    public SpecsPackageVO findSpecsPackageVOByPhoneId(Integer phoneId);

    //4.根据购买情况（型号、购买数量），重新确定库存
    public void subStock(Integer specsId, Integer quantity);
}
